home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, FileLbl, ExtCtrls, FileCtrl;
-
- type
- TForm1 = class(TForm)
- FileLabel1: TFileLabel;
- FileListBox1: TFileListBox;
- DirectoryListBox1: TDirectoryListBox;
- DriveComboBox1: TDriveComboBox;
- Button1: TButton;
- procedure FileListBox1Change(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- private
- { DΘclarations privΘes }
- public
- { DΘclarations publiques }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.FileListBox1Change(Sender: TObject);
- begin
- FileLabel1.FileName := FileListBox1.FileName;
- end;
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- case FileLabel1.Direction of
- drFromLeft: begin
- Button1.Caption := 'From left';
- FileLabel1.Direction := drFromRight;
- end;
- drFromRight: begin
- Button1.Caption := 'From right';
- FileLabel1.Direction := drFromLeft;
- end;
- end;
- end;
-
- end.
-